package cn.haoxsf.app.system.service;

import cn.haoxsf.app.system.entity.Business;
import cn.haoxsf.app.system.model.vo.BusinessResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商户表 服务类
 * </p>
 *
 * @author Ele  qvbanfm@qq.com
 * @since 2020-03-11
 */
public interface IBusinessService extends IService<Business> {
    /**
     * 查询商户
     * @param memberId 用户id
     * @return BusinessResult
     */
    BusinessResult getOne(String memberId);


    /**
     * 改变商户的开工状态
     * @param userId 用户id
     * @param workState 要修改的状态
     */
    Boolean changeWorkState(Long userId,String workState);

}
